package com.jp.strategy;

import com.jp.service.GitLogPrint;

public class GitLogPrintStrategy {

    private final GitLogPrint gitLogPrint;

    public GitLogPrintStrategy(GitLogPrint gitLogPrint){
        this.gitLogPrint = gitLogPrint;
    }

    /**
     * Execute strategy.
     * 执行策略
     *
     * @param fileAddress the file address  文件地址
     * @param type        the type          输出的时间类型
     */
    public void executeStrategy(String fileAddress, String type) throws Exception{
        gitLogPrint.logPrint(fileAddress, type);
    }
}
